package com.yuhan.business;

import com.github.tobato.fastdfs.FdfsClientConfig;
import com.yuhan.common.base.BaseRepositoryImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.context.annotation.EnableMBeanExport;
import org.springframework.context.annotation.Import;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.jmx.support.RegistrationPolicy;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@Import(FdfsClientConfig.class)
@EnableMBeanExport(registration = RegistrationPolicy.IGNORE_EXISTING)
@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
@EnableEurekaClient
@EnableSwagger2
@EnableAspectJAutoProxy
@SpringBootApplication
@ComponentScan("com.yuhan")
@EnableJpaRepositories(basePackages = {"com.yuhan.business.repository"}, repositoryBaseClass = BaseRepositoryImpl.class)
public class YuhanBusinessMsvsApplication {
    public static void main(String[] args) {
        System.out.println("================基础业务开始启动==================");
        SpringApplication.run(YuhanBusinessMsvsApplication.class, args);
        System.out.println("================基础业务启动结束==================");
    }

}
